package com.zzk.protect.controller;

import com.zzk.protect.common.CommonResult;
import com.zzk.protect.pojo.RegistrationLevel;
import com.zzk.protect.service.RegistrationLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/registrationLevel")
public class RegistrationLevelController {
    @Autowired
    private RegistrationLevelService registrationLevelService;
    @GetMapping("/list")
    public CommonResult<List<RegistrationLevel>> list(){
        return CommonResult.success(registrationLevelService.list());
    }

}
